<?php if($cols['first']):?>
<!--START COL-->
<div class="col">
<ul>
<?php endif;?>
<li class="<?php if($in_active_trail) print 'active-trail '; ?><?php if($extra_class) print $extra_class . ' '; ?>level<?php print $level; ?><?php if($has_children){ print " haschildren";}?><?php if(($settings['children'] == 2 )){ print " show-child"; };?>">
  <?php print $link;?>
  <?php if($menu):?>
  <?php print $menu;?>
  <?php endif;?>
</li>
<?php if($cols['last']):?>
</ul>
</div>
<!--END COL-->
<?php endif;?>